import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)

export default ()=> new Vuex.Store({
  modules: {
    app,
    user,
  },
  getters,
  actions:{
    async nuxtServerInit({ dispatch }, context) {
      await dispatch('GetWebInfo')
      // dispatch('GetUserInfo')
    },
  }
})
